package com.jsp.dao.impl;

import com.jsp.dao.StudentDao;
import com.jsp.pojo.Student;

import java.util.List;

/**
 * @author wzm
 * @create 2023-11-09 15:32
 * project_name:web2310
 * @Description
 */
public class StudentDaoImpl extends BaseDao implements StudentDao {
    @Override
    public List<Student> selectList() {
        return selectForList(Student.class,"select * from student");
    }

    @Override
    public int deleteById(Integer id) {
        return update("delete from student where id = ?",id);
    }
}
